package com.container.demo;

import java.util.HashMap;
import java.util.Hashtable;
import java.util.Map;

public class HashTableTest {
    public static void main(String[] args) {
        Map<String,Object> map = new Hashtable<>();
        map.put("1",2);
        System.out.println(map);

        //Hashtable不允许key、value值为空
//        map.put(null,4);
//        System.out.println(map);
    }
}
